<?php $pages = $adc->getPager()->getHTML(6, 'search-ad-form'); ?>
<div class="sorter section-title">
	<div class="count float-left left"><?php echo $adc->getAdsCount().' '.ucfirst($txt->getWord('ads')); ?></div>
	<div class="pages float-right"><?php echo $pages; ?></div>
	<div class="float-right">
	&nbsp;&nbsp;
	<input type="hidden" name="page" id="pageNo" value="<?php echo $_REQUEST['page']; ?>">
	<select class="small-m" name="adtype" onchange="submit();">
		<option value="" <?php echo $txt->getIsSelectedHTML('', $_REQUEST['sortorder']); ?>>
			<?php echo ucfirst($txt->getWord('all').' '.$txt->getWord('ad').$txt->getWord('types')); ?>
		</option>
		<?php 
		if($adc->getAdTypes())
		{
			foreach($adc->getAdTypes() as $type)
			{ echo '<option value="'.$type->getId().'" '.$txt->getIsSelectedHTML($type->getId(), $_REQUEST['adtype']).'>'.$type->getTitle().'</option>'; }
		}
		?>
	</select>
	<select class="medium" name="status" onchange="submit();">
		<option value="-1" <?php echo $txt->getIsSelectedHTML('-1', $_REQUEST['status']); ?>>
			<?php echo ucfirst($txt->getWord('all').' '.$txt->getWord('status')); ?>
		</option>
		<option value="0" <?php echo $txt->getIsSelectedHTML('0', $_REQUEST['status']); ?>>
			<?php echo ucfirst($txt->getWord('unpublished_new_ads')); ?>
		</option>
		<option value="1" <?php echo $txt->getIsSelectedHTML(1, $_REQUEST['status']); ?>>
			<?php echo ucfirst($txt->getWord('active_ads')); ?>
		</option>
		<option value="2" <?php echo $txt->getIsSelectedHTML(2, $_REQUEST['status']); ?>>
			<?php echo ucfirst($txt->getWord('inactive_ads')); ?>
		</option>
	</select>&nbsp;&nbsp;
	<?php /* &nbsp;&nbsp;
	<select class="small-m" name="sortorder" onchange="submit();">
		<option value="date-desc" <?php echo $txt->getIsSelectedHTML('date-desc', $_REQUEST['sortorder']); ?>>
			<?php echo ucfirst($txt->getWord('date')); ?>
		</option>
		<option value="price-asc" <?php echo $txt->getIsSelectedHTML('price-asc', $_REQUEST['sortorder']); ?>>
			<?php echo ucfirst($txt->getWord('price').' '.$txt->getWord('ascending')); ?>
		</option>
		<option value="price-desc" <?php echo $txt->getIsSelectedHTML('price-desc', $_REQUEST['sortorder']); ?>>
			<?php echo ucfirst($txt->getWord('price').' '.$txt->getWord('descending')); ?>
		</option>
	</select> */?>
	</div>
	
	<div class="clear"></div><?php if($adc->getViewObject() != 'AdEdit') { echo '<hr />'; }  ?>
</div>